package com.itheima.job.result.enums;

import java.io.Serializable;

/**
 * @author byZhao
 * @motto Talk is cheap . Show me the code!
 * @modify 2021-11-27 10:59
 * @description
 */
public enum ResultEnum implements Serializable {
    // 通用枚举
    SUCCESS(20000,"您的操作成功！"),
    FAIL(50000,"您的操作失败！"),

    // 业务枚举
    AUTH_REGISTER_USERNAME_IS_EXIST (30000,"您的用户名被占用"),

    //
    MAIL_SEND_MAIL_SUCCESS(7000,"邮件发送成！"),

    // 异常枚举
    SYSTEM_EXCEPTION_MESSAGE(90000,"您的网络有问题，请您确认网络环境！");


    private int code;
    private String value;

    private ResultEnum(int code,String value){
        this.code =code;
        this.value =value;
    }

    public int getCode() {
        return code;
    }

    public String getValue() {
        return value;
    }
}
